package com.offcn.entity;

//来返回数据的统一的数据格式模型 code，message，object
public class ResultVo {
    private int code;  //状态码：0 失败；1：成功
    private String msg;//提示信息
    private Object obj;//响应给前端的模型化数据--对象

    public ResultVo() {
    }

    public ResultVo(int code, String msg, Object obj) {
        this.code = code;
        this.msg = msg;
        this.obj = obj;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }
}
